package com.xoa.controller.hr.SelfhelpInquiry;

import com.xoa.service.hr.selfhelpInquiry.SelfhelpInquiryService;
import com.xoa.util.common.wrapper.BaseWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * @program: xoa
 * @description: 员工自助查询
 * @author: xiaomeng.Yu
 * @create: 2018-07-26 14:04
 **/

@Controller
@RequestMapping("hr")
public class SelfhelpInquiry {
    
    @Autowired
    SelfhelpInquiryService selfhelpInquiryService;
    
    /** 
    * @Description: 导航栏 
    * @Param: [] 
    * @return: java.lang.String 
    * @Author: xiaomeng.Yu
    * @Date: 2018/7/26 
    */ 
    @RequestMapping("/self_find")
    public String navigationBar(){
        return "app/hr/SelfhelpInquiry/navigationBar";
    }

    @RequestMapping("/email")
    public String email(){
        return "app/hr/SelfhelpInquiry/addbox";
    }

    /** 
    * @Description: 转跳员工自助查询首页 
    * @Param: [] 
    * @return: java.lang.String 
    * @Author: xiaomeng.Yu
    * @Date: 2018/7/27 
    */ 
    @RequestMapping("/selfhelpInquiryManaer")
    public String selfhelpInquiryManaer(){
        return "app/hr/SelfhelpInquiry/personnelInformation";
    }

    /** 
    * @Description: 转跳员工积分查询信息页 
    * @Param: [] 
    * @return: java.lang.String 
    * @Author: xiaomeng.Yu
    * @Date: 2018/7/27 
    */ 
    @RequestMapping("/selfhelpInquiryQuery")
    public String selfhelpInquiryQuery(){
        return "app/hr/SelfhelpInquiry/selfhelplnquiryQuery";
    }

    /** 
    * @Description: 转跳专家信息页
    * @Param: [] 
    * @return: java.lang.String 
    * @Author: xiaomeng.Yu
    * @Date: 2018/7/27 
    */ 
    @RequestMapping("/selfhelpInquiryInformation")
    public String selfhelpInquiryInformation(){
        return "app/hr/SelfhelpInquiry/expertInformation";
    }

    /** 
    * @Description: 转跳合同信息
    * @Param: [] 
    * @return: java.lang.String 
    * @Author: xiaomeng.Yu
    * @Date: 2018/7/30 
    */ 
    @RequestMapping("/selfhelpInquiryContractStraff")
    public String selfhelpInquiryContractStraff(){
        return "app/hr/SelfhelpInquiryjsp/selfhelpInquiryContractStraff";
    }

    /**
     * 合同管理详情
     * @param request
     * @return
     */
    @RequestMapping("/contractDetail")
    public String contractDetail(HttpServletRequest request) {
        return "app/hr/contractDetail";
    }


    /** 
    * @Description: 奖惩信息
    * @Param: [] 
    * @return: java.lang.String 
    * @Author: xiaomeng.Yu
    * @Date: 2018/7/30 
    */ 
    @RequestMapping("/selfhelpInquirybonpenManage")
    public String selfhelpInquirybonpenManage(){
        return "app/hr/SelfhelpInquiryjsp/selfhelpInquirybonpenManage";
    }
    
    /** 
    * @Description: 证照信息 
    * @Param: [] 
    * @return: java.lang.String 
    * @Author: xiaomeng.Yu
    * @Date: 2018/7/30 
    */ 
    @RequestMapping("/selfhelpInquiryHrPhotoManager")
    public String selfhelpInquiryHrPhotoManager(){
        return "app/hr/SelfhelpInquiryjsp/selfhelpInquiryHrPhotoManager";
    }

    /** 
    * @Description: 学习经历
    * @Param: [] 
    * @return: java.lang.String 
    * @Author: xiaomeng.Yu
    * @Date: 2018/7/30 
    */ 
    @RequestMapping("/SelfhelpInquiryLearningExperienceManager")
    public String SelfhelpInquiryLearningExperienceManager(){
        return "app/hr/SelfhelpInquiryjsp/SelfhelpInquiryLearningExperienceManager";
    }

    /**
     * 学习经历详情
     * @return
     */
    @RequestMapping("/learningExperienceDetail")
    public String learningExperienceDetail(){
        return "app/hr/learningExperience/learningExperienceDetail";
    }


    /** 
    * @Description: 工作经历 
    * @Param: [] 
    * @return: java.lang.String 
    * @Author: xiaomeng.Yu
    * @Date: 2018/7/30 
    */ 
    @RequestMapping("/SelfhelpInquiryWorkExperienceManager")
    public String SelfhelpInquiryWorkExperienceManager(){
        return "app/hr/SelfhelpInquiryjsp/SelfhelpInquiryWorkExperienceManager";
    }
    
    /** 
    * @Description: 劳动技能 
    * @Param: [] 
    * @return: java.lang.String 
    * @Author: xiaomeng.Yu
    * @Date: 2018/7/30 
    */ 
    @RequestMapping("/selfhelpInquieySkillManage")
    public String selfhelpInquieySkillManage(){
        return "app/hr/SelfhelpInquiryjsp/selfhelpInquieySkillManage";
    }

    /** 
    * @Description: 社会关系
    * @Param: [] 
    * @return: java.lang.String 
    * @Author: xiaomeng.Yu
    * @Date: 2018/7/30 
    */ 
    @RequestMapping("/selfhelpInquirySocialRelationsManaer")
    public String selfhelpInquirySocialRelationsManaer(){
        return "app/hr/SelfhelpInquiryjsp/selfhelpInquirySocialRelationsManaer";
    }

    /**
     * 社会关系详情页
     * @return
     */
    @RequestMapping("/socialRelationsDetail")
    public String socialRelationsDetail(){
        return "/app/hr/socialRelations/SocialRelationsDetail";
    }

    /** 
    * @Description: 人事调动
    * @Param: [] 
    * @return: java.lang.String 
    * @Author: xiaomeng.Yu
    * @Date: 2018/7/30 
    */ 
    @RequestMapping("/selshelpInquiryHrTransferManager")
    public String selshelpInquiryHrTransferManager(){
        return "app/hr/SelfhelpInquiryjsp/selshelpInquiryHrTransferManager";
    }

    /**
     * @Description: 复职信息
     * @Param: []
     * @return: java.lang.String
     * @Author: xiaomeng.Yu
     * @Date: 2018/7/30
     */
    @RequestMapping("/selfhelpInquiryHrRehabManager")
    public String selfhelpInquiryHrRehabManager(){
        return "app/hr/SelfhelpInquiryjsp/selfhelpInquiryHrRehabManager";
    }

    /**
     * @Description: 职称评定
     * @Param: []
     * @return: java.lang.String
     * @Author: xiaomeng.Yu
     * @Date: 2018/7/30
     */
    @RequestMapping("/selfhelpInquiryEvaluationManagement")
    public String selfhelpInquiryEvaluationManagement(){
        return "app/hr/SelfhelpInquiryjsp/selfhelpInquiryEvaluationManagement";
    }

    /**
     * @Description: 培训管理
     * @Param: []
     * @return: java.lang.String
     * @Author: xiaomeng.Yu
     * @Date: 2018/7/30
     */
    @RequestMapping("/selfhelpInquiryTrainRecordMange")
    public String selfhelpInquiryTrainRecordMange(){
        return "app/hr/SelfhelpInquiryjsp/selfhelpInquiryTrainRecordMange";
    }

    /**
     * @Description: 薪酬信息
     * @Param: []
     * @return: java.lang.String
     * @Author: xiaomeng.Yu
     * @Date: 2018/7/30
     */
    @RequestMapping("/selfhelpInquiryPersonWages")
    public String selfhelpInquiryPersonWages(){
        return "app/hr/SelfhelpInquiryjsp/selfhelpInquiryPersonWages";
    }

    /**
     * @Description: 绩效考核
     * @Param: []
     * @return: java.lang.String
     * @Author: xiaomeng.Yu
     * @Date: 2018/7/30
     */
    @RequestMapping("/selfhelpInquiryAssessmentTaskment")
    public String selfhelpInquiryAssessmentTaskment(){
        return "app/hr/SelfhelpInquiryjsp/selfhelpInquiryAssessmentTaskment";
    }

    /** 
    * @Description: 考勤记录 
    * @Param: [] 
    * @return: java.lang.String 
    * @Author: xiaomeng.Yu
    * @Date: 2018/8/3 
    */ 
    @RequestMapping("/selfhelpInquieyAttendSetting")
    public String selfhelpInquieyAttendSetting(){
        return "app/hr/SelfhelpInquiryjsp/selfhelpInquieyAttendSetting";
    }

    /**
     * 根据选择的模块查询数据
     * @param typeId
     * @return
     */
    @ResponseBody
    @RequestMapping("getHumanResourcesData")
    public BaseWrapper getHumanResourcesData(Integer typeId,HttpServletRequest request){
       return selfhelpInquiryService.getHrInfo(typeId,request);
    }
}
